<template>
    <el-dialog title="取证照片" :visible.sync="visible">
      <el-container>
        <el-main>
          <img style="width: 100%;height: 100%;" :src="imgUrl"/>
        </el-main>
      </el-container>
    </el-dialog>
</template>

<script>
  export default {
    name: 'parking-img-dialog',
    props: ['parkVisible', 'imgChild'],
    data() {
      return {
        visible: false,
        imgUrl: ''
      }
    },
    watch: {
      parkVisible: function(val) {
        this.visible = val
      },
      visible: function(val) {
        this.$emit('update:parkVisible', val)
      },
      imgChild: function(val) {
        this.imgUrl = val
      }
    }
  }
</script>

<style scoped>
.el_main{
  width: 400px;
  height: 400px;
}
</style>
